package java56_2;

import java.util.Scanner;

public class FeeOffice {

	public static void main(String[] args) {
		Tourist t = new Tourist();
		Scanner sc = new Scanner(System.in);
		System.out.print("请游客报上名字：");
		// String n = sc.next();
		// t.name = n;
		t.name = sc.next();
		System.out.print("请出示身份证，获得年龄：");
		t.age = sc.nextInt();

		int pay = t.calcTicket();
		System.out.println("尊敬的" + t.name + ",应付" + pay + "元");
	}

}
